<?php $sf_form_gui = $form->getObject() ?>
<div class="form-wrapper">
    <h1>
        <?php echo $sf_form_gui->isNew() ? __('New') : __('Edit') ?>
        SfFormGui</h1>
    <p>
        <?php echo $sf_form_gui->getDescription(); ?>
    </p>
    <form action="<?php echo url_for('sfFormGui/update'.(!$sf_form_gui->isNew() ? '?id='.$sf_form_gui->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data"' ?>>
        <?php echo $form->renderGlobalErrors() ?>
        <label for="sf_form_gui_name">
            Name
        </label>
        <?php echo $form['name']->render(array('class'=> ($form['name']->hasError() ? 'error':'') )) ?>
        <div class="spacer">
        </div>
        <label for="sf_form_gui_descrption">
            Description
        </label>
        <?php echo $form['description']->render(array('class'=> ($form['description']->hasError() ? 'error':'') )) ?>
        <div class="spacer">
        </div>
        <label for="sf_form_gui_published">
            Published
        </label>
        <?php echo $form['published']->render(array('class'=> ($form['published']->hasError() ? 'error':'') )) ?>
        <div class="spacer">
        </div>
        <label for="sf_form_gui_published">
            Owner
        </label>
        <?php echo $form['owner_id']->render(array('class'=> ($form['owner_id']->hasError() ? 'error':'') )) ?>
        <div class="spacer">
        </div>
        <?php echo $form['id'] ?>
        <button type="submit">
            Submit 
        </button>
        <div class="spacer">
        </div>
        <a href="<?php echo url_for('sfFormGui/index') ?>">
            <?php echo __('Cancel')?>
        </a>
        <?php if (!$sf_form_gui->isNew()): ?>
        &nbsp;
        <?php echo link_to(__('Delete'), 'sfFormGui/delete?id='.$sf_form_gui->getId() , array(
            'post' => true,
            'confirm' => __('Are you sure ?')
        )) ?>
        <?php endif; ?>
    </form>
</div>
